<style>
.fe-floatright-bottom .icon { 
	display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
	color:#fff;
	line-height:1.6rem;
}
</style>
<div ng-if="pagedata.pluginset && pagedata.pluginset.nokefu!=1" class="fe-floatright-bottom" style="bottom:6rem">
	<div class="icon" style="background:none" href="javascript:;" ng-click="pagedata.tokefu();">
		<img ng-src="{{tomedia(pagedata.pluginset.kefuicon) || '../core/resource/images/diy/icon-kefu.png'}}" style="height:100%; width: 100%;">
	</div>
</div>
<div id="attention" ng-if="pagedata.showqrcode==1">
	<div class="attention-alert" style="width:80%;left:10%">
					<div class="attention-content" style="padding: 1.5rem 0;background:none;height:auto">
						<div class="col-jy-1" style="text-align: center;">
							<img ng-src="{{tomedia(pagedata.kefuqr) || '../core/resource/images/nopic.jpg'}}" alt=""style="width: 100%">
						</div>
						<p >长按指纹识别图中二维码</p>
					</div>
					<i class="icon icon-cuowu" ng-click="pagedata.showqrcode=0" style="font-size:1.5rem;color:#fff;position: absolute;top:105%;left:45%"></i>
	</div>
</div>
<script>
scope.pagedata.tokefu=function(){
	if(scope.pagedata.pluginset.h5appkf==1 && window.config.fromh5wxapp==1 && window.config.container!='ttapp' && window.config.container!='baiduapp'){
		//H5小程序环境下
		var logo=scope.tomedia(scope.pagedata.account.logo);
		var title=scope.pagedata.account.title
		wx.miniProgram.navigateTo({
			url: '/pages/kefu/index?logo='+logo+'&title='+title
		})
	}else{
		if(!scope.pagedata.pluginset.kefutype_h5 || scope.pagedata.pluginset.kefutype_h5==0){
			scope.access_json(scope.pagedata.pluginset.kflink);
		}else if(scope.pagedata.pluginset.kefutype_h5==1){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.kf_accountimg;
			scope.pagedata.showqrcode=1;
		}else if(scope.pagedata.pluginset.kefutype_h5==2){
			scope.access_json(scope.pagedata.pluginset.appkflink)
		}else if(scope.pagedata.pluginset.kefutype_h5==3){
			scope.access_json(scope.pagedata.pluginset.workerh5url)
		}else if(scope.pagedata.pluginset.kefutype_h5==4){
			scope.pagedata.kefuqr=scope.pagedata.pluginset.guwenkfewm;
			scope.pagedata.showqrcode=1
		}
		scope.$evalAsync();
	}
}
</script>